package cn.lili.controller.feign;

import cn.lili.modules.promotion.client.TicketClient;
import cn.lili.modules.promotion.entity.dos.Ticket;
import cn.lili.modules.promotion.service.TicketService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class TicketFeignController implements TicketClient {

    private final TicketService ticketService;
    @Override
    public Ticket getTicket(String areaName, String areaDirection, String line, String column) {
        return ticketService.getTicket(areaName, areaDirection, line, column);
    }
}
